FROM openjdk:8-jre
ARG JAR_FILE=module-admin.jar
ARG LIB_DIRECTORY=lib
WORKDIR /home/ruoyi
ADD ${JAR_FILE} app.jar
ADD ${LIB_DIRECTORY} lib
EXPOSE 8081
ENTRYPOINT ["sh", "-c", "java -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=dock -Dloader.path=lib -jar app.jar"]



